
<script src ="/js/base/jquery.js"></script>
<script src ="/js/base/jquery.tmpl.js"></script>
<script src="/js/common/bind_add_album_and_love.js"></script>
<script src ="/js/common/tips.js"></script>
<script type="text/javascript" src="/js/common/uploader.js"></script>
<script src="/js/common/bind_add_atten.js"></script>
<script src ="/js/common/user_message.js"></script>
<script src ="/js/common/detail_poup.js"></script>
<script src ="/js/common/user_message.js"></script>
<script src ="/js/common/pubu.js"></script>
<script src ="/js/common/gototop.js"></script>
<script src ="/js/base/blocksit.min.js"></script>
<script src ="/js/base/blocksit.min.js"></script>
<script src ="/js/base/jquery.masonry.min.js"></script>

<script>

$(document).ready(function(){

	$(".del_common").die("click");
	$(".del_common").live("click",function(e){
		
				if(confirm("是否删除这条分享?"))
				{
					var mblog_id = $(this).attr("value");
					$.ajax({
						url : "/interface/mblog/json_update_mblog_content.php?t=json&type=del",
						data : "id="+mblog_id,
						dataType : 'json',
						success : function(data){
						if(data.error == 1)
						{
							YOUXIXIU.MAIN.Tips.Show(data.errmsg);		
						}
						else
						{
							YOUXIXIU.MAIN.Tips.Show(data.errmsg);
							location.reload();
						}
									
						}
					});	
			}
			
		
		});
	$(".del_video").die("click");
	$(".del_video").bind("click",function(e){
		
				if(confirm("是否删除这条视频分享?"))
				{
					var mblog_id = $(this).attr("value");
					$.ajax({
						url : "/interface/video/json_update_video_content.php?t=json&type=del",
						data : "id="+mblog_id,
						dataType : 'json',
						success : function(data){
						if(data.error == 1)
						{
							YOUXIXIU.MAIN.Tips.Show(data.errmsg);		
						}
						else
						{
							YOUXIXIU.MAIN.Tips.Show(data.errmsg);
							location.reload();
						}
									
						}
					});	
			}
			
		
		});
	$(".del_att").die("click");	
	$(".del_att").bind("click",function(e){
	
			if(confirm("是否取消这个用户的关注？！"))
			{
				var uid = $(this).attr("uid");
				$.ajax({
					url : "/interface/user/json_add_atten.php?t=json&type=del",
					data : "uid="+uid,
					dataType : 'json',
					success : function(data){
					if(data.error == 1)
					{
						YOUXIXIU.MAIN.Tips.Show(data.errmsg);		
					}
					else
					{
						YOUXIXIU.MAIN.Tips.Show(data.errmsg);
						location.reload();
					}
								
					}
				});	
		}
		
	
	});
	$(".del_love").die("click");	
	$(".del_love").bind("click",function(e){
	
		if(confirm("是否删除这个喜欢?"))
		{
			var mblog_id = $(this).attr("value");
			$.ajax({
					url : "/interface/user/json_add_like_to_mblog.php?t=json&type=del",
					data : "id="+mblog_id,
					dataType : 'json',
					success : function(data){
					if(data.error == 1)
					{
						YOUXIXIU.MAIN.Tips.Show(data.errmsg);		
					}
					else
					{
						YOUXIXIU.MAIN.Tips.Show(data.errmsg);
						location.reload();
					}
								
					}
				});	
		}
	
	});

	{%if $g_show.current_user_info%}
//	YOUXIXIU.MAIN.CheckMessage.init();
	{%/if%}



	YOUXIXIU.MAIN.Tips.text_default_val("#query");



	$(".add_url_shouchang").bind("click",function(e){
		  var g = document.title,
            d = document.URL;
            if (document.all) {
                try {
                    window.external.addFavorite(d, g)
                } catch(f) {
                    alert("加入收藏失败，请使用Ctrl+D进行添加")
                }
            } else {
                if (window.sidebar) {
                    window.sidebar.addPanel(g, d, "")
                } else {
                    alert("加入收藏失败，请使用Ctrl+D进行添加")
                }
            }
            return false
	
		
	});
});
</script>


{%include file="tmpl/album_add_content.html" %} 